<?php

class myUser extends sfGuardSecurityUser {

    public function getFromFilters($param, $module = 'course_faculty') {
        $filters = $this->getAttribute($module.'.filters', null, 'admin_module');
        if ($filters === null)
            return false;

        if (isset($filters[$param])) return $filters[$param];

        switch ($param) {
            case 'faculty_name':
                if (isset($filters['faculty_id'])) {
                    return FacultyTable::getInstance()->find($filters['faculty_id']);
                }
                break;
        }
    }

}
